package com.fxh.singlereponsibility;

public class SingleResponsibility2 {
}

class RoadVerhicle{
    public void run(String verhicle){
        System.out.println(verhicle +"在公路运行");
    }
}

class AirVerhicle{
    public void run(String verhicle){
        System.out.println(verhicle +"在天空运行");
    }
}

class WaterVerhicle{
    public void run(String verhicle){
        System.out.println(verhicle +"在水中运行");
    }
}